﻿using BCDto.OA.Attendance.AttendancePlan;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceGroup
{
    /// <summary>
    /// 排班制 (自定义设置考勤时间)
    /// </summary>
    public class AttendanceTurnGroupRequestDto : AttendanceGroupRequestDto
    {
        /// <summary>
        /// 排班周期
        /// </summary>	
        [Display(Name = "排班班次")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long[] PlanClassIds { get; set; }

        /// <summary>
        /// 排班周期名称
        /// </summary>		      
        [Display(Name = "周期名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string PlanName { get; set; }
        /// <summary>
        /// 每个周期天数
        /// </summary>
        [Display(Name = "周期天数")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int CycleDays { get; set; }

        /// <summary>
        /// 周期班次
        /// </summary>
        [Display(Name = "周期班次")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public List<AttendancePlanRequestDto> Plans { get; set; } = new List<AttendancePlanRequestDto>();
    }
}
